import store from '@/store'
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "addBtn": false,
  "menu": false,
  "searchLabelWidth": 90,
  searchMenuSpan: 6,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      "display": false,
      "hide": true
    },
    {
      "type": "select",
      "label": "线路名称",
      "prop": "lineCode",
      cascaderItem: ["stationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      "search": store.getters.belongToLine,
      "hide": !store.getters.belongToLine,
      dicUrl: "/support/swparamline/dict",

    },
    {
      "type": "select",
      "label": "车站名称",
      "prop": "stationCode",
      props: {
        label: 'name',
        value: 'code'
      },
      "search": store.getters.belongToLine,
      "hide": !store.getters.belongToLine,
      dicFlag: false,
      dicUrl: `/support/swparamstation/dict/{{key}}`,
    },
    {
      "type": "input",
      "label": "设备操作号",
      "prop": "operationCode",
      "search": true
    },	  {
      "type": "input",
      "label": "使用人",
      "prop": "usePersonName",
      "search": true
    },	  {
      "type": "input",
      "label": "使用人工号",
      "prop": "usePersonCode",
      "search": true
    },/*	  {
      "type": "input",
      "label": "原使用人",
      "prop": "usedPersonName"
    },	  {
      "type": "input",
      "label": "原使用人工号",
      "prop": "usedPersonCode"
    },*/	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      "display": false,
      "hide": true
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      "display": false,
      "hide": true
    },	  {
      "type": "input",
      "label": "创建人",
      "prop": "creatorName",
      //"display": false,
      "hide": false
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      //"display": false,
      "hide": false
    }]
}
